<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link th:href="@{/animate.min.css}" rel="stylesheet">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
    <script th:src="@{/common.js}"></script>


    <style>

        a{
            cursor: pointer;
        }


    </style>

</head>
<body style="background-color: #F8F8F8;overflow-x: hidden">
<div>



    <!--    顶部导航-->
    <div class="layui-header" style="background-color: #23262E;">
        <ul class="layui-nav layui-layout-left" style="background-color: #23262E">
            <li class="layui-nav-item layui-this"><a onclick="window.location.href='/index?account='+
            getQueryVariable('account')">主页</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">一级库</a>
                <dl class="layui-nav-child">
                    <dd><a onclick="window.location.href='/addCenter?account='+ getQueryVariable('account')">入库
                    </a></dd>
                    <dd><a onclick="window.location.href='/queryCenter?account='+ getQueryVariable('account')">查询</a></dd>
                    <dd><a onclick="window.location.href='/outCenter?account='+ getQueryVariable('account')">出库申请</a>
                    </dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">二级库</a>
                <dl class="layui-nav-child" id="nav">
                    <dd><a onclick="window.location.href='/queryAssist?account='+ getQueryVariable('account')">查询</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right" style="background-color: #23262E">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <span><text th:text="${param.account}"></text></span>
                </a>
            </li>
            <li class="layui-nav-item"><a th:href="@{/userController/logout}">退出</a></li>
        </ul>
    </div>


    <div style="padding: 50px;position: relative">

        <div style="background: url('/logo/bg.png') no-repeat center;padding: 20px;height: 400px">
        </div>
    </div>

</div>


<script th:src="@{/layui/jquery-1.11.2.js}"></script>
<script th:src="@{/layui/layui.all.js}" charset="utf-8"></script>
<script>
    $(function () {
        layui.use(['element', 'form', 'table', 'layer'], function () {
            var element = layui.element;
            var form = layui.form;
            var table = layui.table;
            var layer = layui.layer;
            loadNav();

        });
    });


</script>
</body>
</html>